<div class="stats_table">
<table border="0" style="width:400px;">
  <tr>
    <td colspan="2"><b>General ZendOpcache Information</b></td>
  </tr>
  {% if status['opcache_enabled'] == 'Enabled' %}
    <tr bgcolor="#00FF00">
  {% else %}
    <tr>
  {% endif %}
    <td>Opcache Enabled</td>
    <td>{{ status['opcache_enabled'] }}</td>
  </tr>
  <tr>
    <td>Cache Full</td>
    <td>{{ status.cache_full }}</td>
  </tr>
  <tr>
    <td>Restart Pending</td>
    <td>{{ status['restart_pending'] }}</td>
  </tr>
  <tr>
    <td>Restart in Progress</td>
    <td>{{ status.restart_in_progress }}</td>
  </tr>
  <tr>
    <td class="blank" colspan="2"></td>
  </tr>
  <tr>
    <td colspan="2"><b>Memory Usage</b></td>
  </tr>
  <tr>
    <td>Used Memory</td>
    <td>{{ status['memory_usage']['used_memory'] }}MB</td>
  </tr>
  <tr>
    <td>Free Memory</td>
    <td>{{ status.memory_usage.free_memory }}MB</td>
  </tr>
  <tr>
    <td>Wasted Memory</td>
    <td>{{ status.memory_usage.wasted_memory }}MB</td>
  </tr>
  <tr>
    <td>Current Wasted Percentage</td>
    <td>{{ status.memory_usage.current_wasted_percentage }}%</td>
  </tr>
  <tr>
    <td class="blank" colspan="2"></td>
  </tr>
  <tr>
     <td colspan="2"><b>Opcache Statistics</b></td>
  </tr>
  <tr>
    <td>Number of Cached Scripts</td>
    <td>{{ status.opcache_statistics.num_cached_scripts }}</td>
  </tr>
  <tr>
    <td>Cached Keys</td>
    <td>{{ status.opcache_statistics.num_cached_keys }}</td>
  </tr>
  <tr>
    <td>Max Cached Keys</td>
    <td>{{ status.opcache_statistics.max_cached_keys }}</td>
  </tr>
  <tr>
    <td>Hits</td>
    <td>{{ status.opcache_statistics.hits }}</td>
  </tr>
  <tr>
    <td>Start Time</td>
    <td>{{ status.opcache_statistics.start_time }}</td>
  </tr>
  <tr>
    <td>Last Restart Time</td>
    <td>{{ status.opcache_statistics.last_restart_time }}</td>
  </tr>
  <tr>
    <td>OOM Restarts</td>
    <td>{{ status.opcache_statistics.oom_restarts }}</td>
  </tr>
  <tr>
    <td>Hash Restarts</td>
    <td>{{ status.opcache_statistics.hash_restarts }}</td>
  </tr>
  <tr>
    <td>Manual Restarts</td>
    <td>{{ status.opcache_statistics.manual_restarts }}</td>
  </tr>
  <tr>
    <td>Misses</td>
    <td>{{ status.opcache_statistics.misses }}</td>
  </tr>
  <tr>
    <td>Blacklist Misses</td>
    <td>{{ status.opcache_statistics.blacklist_misses }}</td>
  </tr>
  <tr>
    <td>Blacklist Miss Ratio</td>
    <td>{{ status.opcache_statistics.blacklist_miss_ratio }}</td>
  </tr>
  <tr>
    <td>Opcache Hit Rate</td>
    <td>{{ status.opcache_statistics.opcache_hit_rate}}%</td>
  </tr>
</table>
</div>
